package com.zz.inventory.feign;

import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.common.core.web.page.TableDataInfo;
import org.example.dto.SchoolPackageRecordDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(
        value = "Teacher",             //远程调用模块的名字
        fallbackFactory = TeacherExamFallbackFactory.class)
public interface TeacherExamFeignClient {
    /**
     * 查询学生关联的考试记录
     */
    @GetMapping("/records/students/{studentId}")
    AjaxResult getStudentExamRecords(@PathVariable("studentId") Long studentId);

    @DeleteMapping("/records/students/{studentId}")
    AjaxResult deleteExamRecordsByStudentId(@PathVariable Long studentId);

}
